package com.youku.ast;

/**
 * while循环语句
 * 
 * @author loda
 *
 */
public class WhileLoopAst extends Ast {

	public WhileLoopAst(Ast... asts) {
		super(asts);
	}

	public Ast conditionWithBody() {
		return getChild(0);
	}

	@Override
	public String toString() {
		return "while " + conditionWithBody();
	}
}
